package com.doghome.news.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.doghome.news.entity.Topic;

@Mapper
@Repository
public interface TopicMapper {
    int deleteByPrimaryKey(Integer tid);

    int insert(Topic record);

    int insertSelective(Topic record);

    Topic selectByPrimaryKey(Integer tid);

    int updateByPrimaryKeySelective(Topic record);

    int updateByPrimaryKey(Topic record);
    
    List<Topic> selectAll(Integer tid);
    
    int selectByName(String tname);
}